import request from '../util/request'
import axios from "axios";

const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

export function loadInvoiceTitleApi(params) {
  return request({
    url:baseUrl+ "/lcinvoicetitle",
    method: "get",
    params: params
  });
}
export function loadInvoiceProcApi(params) {
  return request({
    url:baseUrl+ "/lcinvoice",
    method: "get",
    params: params
  });
}
export function updateInvoiceApi(form) {
  return request({
    url:baseUrl+ "/lcinvoice",
    method: "put",
    data: form
  })
}

export function exportSCVApi() {
  return axios.get(baseUrl + "/lcinvoice/export", {
    params: {},
    responseType: "blob"
  })
}

export function exportExcApi(data) {
  return axios.get(baseUrl + "/lcinvoice/export", {
    method: "GET",
    params:data,
    responseType: "blob"
  })
}

